#include "Object.h"
#include "State.h"

int Object::ChangeState(State* pNewState)
{
	if (m_pCurState == pNewState)
	{
		return 0;
	}

	m_pCurState->Exit(this);
	m_pCurState = pNewState;
	m_pCurState->Enter(this);

	return 0;
}

